package com.easondongh.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easondongh.system.domain.SysMenu;

import java.util.List;

/**
 * @author EasonDongH
 * @date 2020/4/28 13:14
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    Integer getMaxOrderNum();

    Integer countChildDeptById(Integer id);

    /**
     * 根据用户id查询所有可用、可见菜单
     * @param id
     * @return
     */
    List<SysMenu> queryMenuByUid(Integer id);
}